package com.wizo.csb.records;

import java.io.IOException;
import java.util.Vector;

import com.wizo.csb.records.exporter.*;

public abstract class OneRecord {
	
	String _name;
	Vector<Long> _latencies;
	
	public OneRecord(String name){
		_name = name;
		_latencies = new Vector<Long>();
	}
	
	public String getName(){
		return _name;
	}
	
	public abstract void record(long latency);
	
	public abstract void reportOneRecord(RecordsExporter exporter) throws IOException;
	
	public abstract void reportLatencies(RecordsExporter exporter) throws IOException;
}
